/*
 * @Author: zhangfeng
 * @Date: 2023-12-27 13:49:34
 * @LastEditTime: 2023-12-27 14:59:36
 * @LastEditors: zhangfeng
 * @Description:
 * @FilePath: \nodeapi\src\router\role.router.js
 * © 2023 张峰，All rights reserved.
 */
const KoaRouter = require("koa-router");

const {
  createRole,
  getRoleAll,
  updateRole,
  deleteRole,
} = require("../controller/role.controller");
const router = new KoaRouter({
  prefix: "/roles",
});

router.get("/", getRoleAll);

router.post("/", createRole);

router.put("/", updateRole);

router.delete("/", deleteRole);

module.exports = router;
